package com.it.stringdemo;

public class StringDome6 {
    public static void main(String[] args) {
        //1.获取一个手机号
        String phoneNumber = "1311234948";

        //2.截取手机号前面三位
        String start = phoneNumber.substring(0, 3);

        //3.截取手机号后面四位
        String end = phoneNumber.substring(7);

        //4.拼接
        String reverse = start +"****"+end;

        //5.打印
        System.out.println(reverse);
    }
}
